from time import sleep

import  page
from base.base import Base

class PageWebOrder(Base):
    def page_web_img(self):
        self.base_click(page.web_img)
    def page_web_myorder(self):
        self.base_click(page.web_my_order)
    def page_web_deleteorder(self):
        sleep(2)
        self.base_click(page.web_delete_order)
    def page_web_cancelorder(self):
        self.base_click(page.web_surecancel)
    def page_web_get_ordernumber(self):
        return self.base_get_text(page.web_ordernumber)
    #web取消订单业务
    def page_web_login(self):
        self.page_web_img()
        self.page_web_myorder()
        self.page_web_deleteorder()
        self.page_web_cancelorder()
        self.page_web_cancelorder()
        self.page_web_get_ordernumber()

